﻿using Basic.FormRemoteModel;
using SqlSugar;

namespace Basic.FormModel.DB
{
    [SugarTable("FormViewCol")]
    public class DBFormViewCol
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        public long FormId
        {
            get;
            set;
        }

        public long TableId { get; set; }

        public long ColumnId { get; set; }

        public string Name { get; set; }

        public string Alias { get; set; }

        public string Label { get; set; }

        public PhyTableDataType DataType
        {
            get;
            set;
        }

        public PageFuncType FuncType
        {
            get;
            set;
        }
        public FormColumnFuncType ColFuncType { get; set; }

        public long? DictId { get; set; }

        public short? Precision { get; set; }

        [SugarColumn(IsJson = true)]
        public Dictionary<string, object> ColumnSet
        {
            get;
            set;
        }
    }
}
